package com.okbihuo.perm.constants;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum FontStyle {
    /**
     * 普通
     */
    none(""),
    /**
     * 斜体
     */
    italic("italic");

    public String value;

    public static FontStyle getByValue(String value) {
        for (FontStyle type : values()) {
            if (type.value.equals(value)) {
                return type;
            }
        }
        return none;
    }

}

